<div id="page-content">
    <div id='wrap'>
        <div id="page-heading">
            <ol class="breadcrumb">
                <li><a href="index.php">Dashboad</a></li>
                <li>Data Penyakit <?php echo $hewan; ?></li>
            </ol>

            <h1>Data Penyakit <?php echo $hewan; ?></h1>
        </div>


        <div class="container">
         <div class="row">
          <div class="col-md-12">
            <div class="panel panel-sky">
                <div class="panel-heading" <?php if($hewan=='Sapi') { echo "style='background-color:#1FAFD3'"; } if($hewan=='Kambing') { echo "style='background-color:#E08E0B'"; } if ($hewan='Domba') {
                   echo "style='background-color:#78BA38'";} ?> >
                    <h4>Data Penyakit</h4>
                </div>
                <div class="panel-body collapse in">
                    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered datatables" id="example" >
                        <thead>
                            <tr>
                                <th>No</th>
                                <th>Kode Penyakit</th>
                                <th>Nama</th>
                                <th>Aksi</th>
                            </tr>
                        </thead>
                        <tbody>
                           <?php 
                           $i = 0;
                           if ($data != null) 
                            foreach ($data as $dt) {  $i++; ?>
                        <tr>
                            <td><?php echo $i; ?></td>
                            <td><?php echo $dt->kd_penyakit; ?></td>
                            <td class="col-md-6"><?php echo $dt->penyakit; ?></td>
                            <td class="col-md-2">
                             <div class="btn-group">
                                 <a href="<?php echo site_url('penyakit/gejala').'/'.$param.'/'.$dt->id_penyakit; ?>" class="btn btn-default-alt">Gejala</a>
                                <a href="#" class="btn btn-default-alt dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="<?php echo site_url('penyakit/edit').'/'.$dt->id_penyakit; ?>">Edit</a></li>
                                    <li><a href="<?php echo site_url('diagnosa/hapus').'/'.$param.'/'.$dt->id_penyakit; ?>" onclick="return confirm('Anda yakin menghapus diagnosa ?');">Hapus</a></li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                    <?php } ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
</div>

</div> <!-- container -->
</div> <!--wrap -->
</div> <!-- page-content -->